import axios from '../plugins/axios'

export default () => {
   const uploadFile = (file: any) => {
      return axios.request<{ url: string }>({
         url: 'upload',
         data: file,
         method: 'post'
      })
   }

   return { uploadFile }
}
